package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.RepayDao;
import com.zhiyou100.model.Repay;
@Service
public class RepayServiceImpl implements RepayService{
	@Autowired
	private  RepayDao repayDao;
	@Override
	public ArrayList<Repay> findAll(int projectId) {
		ArrayList<Repay> al = repayDao.findAll(projectId);
		return al;
	}

	@Override
	public void add(Repay repay) {
		repayDao.add(repay);
	}

	@Override
	public void update(Repay repay) {
		repayDao.update(repay);
	}

	@Override
	public void delete(int id) {
		repayDao.delete(id);
	}

}
